<link href="/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/swfupload/swfupload.js"></script>
<script type="text/javascript" src="/js/fileprogress.js"></script>
<script type="text/javascript" src="/js/handlers.js"></script>
{literal}
<script type="text/javascript">
		var swfu;

		window.onload = function () {
			swfu = new SWFUpload({
				// Backend settings
				upload_url: "/feedback/uploadimagefile/",	// Relative to the SWF file, you can use an absolute URL as well.
				file_post_name: "imagefile",

				// Flash file settings
				file_size_limit : "5 MB",
				file_types : "*.gif;*.jpg;*.jpeg",			// or you could use something like: "*.doc;*.wpd;*.pdf",
				file_types_description : "Файлы изображений",
				file_upload_limit : "0",
				file_queue_limit : "1",

				// Event handler settings
				swfupload_loaded_handler : swfUploadLoaded,
				
				file_dialog_start_handler: fileDialogStart,
				file_queued_handler : fileQueued,
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				
				//upload_start_handler : uploadStart,	// I could do some client/JavaScript validation here, but I don't need to.
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,

				// Button Settings
				button_image_url : "/img/XPButtonUploadText_61x22_new.png",	// Relative to the SWF file
				button_placeholder_id : "spanButtonPlaceholder",
				button_width: 61,
				button_height: 22,
				
				// Flash Settings
				flash_url : "/swfupload/swfupload.swf",

				custom_settings : {
					progress_target : "fsUploadProgress",
					upload_successful : false
				},
				
				// Debug settings
				debug: false
			});

		};
	</script>
{/literal}

<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<form>
	<tr>
		<td  width="100%">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td align="left" width="25%" style="padding-right:3px;"><input type="text" style="width:100%;"  class="grey" value="Ключевое слово" onfocus="value=''"/></td>
					<td width="25%" style="padding-left:5px;">
						<select  style="width:100%; height:19px;" class="grey">
							<option>По отелям</option>
							<option>2</option>
							<option>3</option>
						</select>
					</td>
					<td width="25%" style="padding-left:5px;">
						<select  style="width:100%; height:19px;"  class="grey">
							<option>Турция</option>
							<option>Египет</option>
							<option>Тайланд</option>
						</select>
					</td>
					<td width="25%" style="padding-left:5px;">
						<select  style="width:100%; height:19px;"  class="grey">
							<option>Хургада</option>
							<option>Шарм</option>
							<option>Таба</option>
						</select>
					</td>
					<td align="right" style="padding-left:5px;"><input type="button" value="Найти" class="but" height="15px"></td>
				</tr>
			</table>
		</td>
	</tr>
	</form>
	<tr>
		<td width="100%" style="padding-top:10px;">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td colspan="2" align="left" style=" padding-top:10px;">
						<table cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr>
								<td colspan="2" height="3px" bgcolor="#B4004A"></td>
							</tr>
							<tr>
								<td colspan="2">
									<table cellpadding="0" cellspacing="0" border="0">
										<tr>
											<td style="padding-left:20px;"valign="top" >
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tr>
														<td  class="menu_non2" width="250px" height="25px"><a class="a_menu_non">Шаг 1<br/>Выберите тип, отель</a></td>
													</tr>
												</table>
											</td>
											<td style=" padding-right:4px; padding-left:4px;" valign="top">
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tr>
														<td class="menu_non2" width="250px" height="25px"><a href="/feedback/addvideo/" class="a_menu_non">Шаг 2<br/>Добавить видео</a></td>
													</tr>
												</table>
											</td>
											<td style=" padding-right:20px;" valign="top">
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tr>
														<td  class="menu_actyv2" width="250px" height="25px"><a class="a_menu_actyv">Шаг 3<br/>Добавить фото</a></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2" style="padding-top:10px;"><a class="a_menu_non" style="font-weight:bold;">Ваши фото по этому отзыву</a></td>
							</tr>
							<tr>
								<td colspan="2" style="padding-top:10px;">
									<table cellpadding="0" cellspacing="3" border="0" width="100%">
										<tr>
											{foreach item=Image from=$Images}
											<td width="50%">
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tr>
														<td rowspan="2" width="50px" align="left" style="padding-right:10px;"><img src="/upload/tmp/{$Image->file_name}"  width="50"></td><td valign="top"><a class="grey">{$Image->alt_text}</a></td>
													</tr>
													<tr>
														<td valign="bottom" align="left"><a href="/feedback/deletevideo?id={$Image->getPk()}" class="grey">Удалить</a></td>
													</tr>
												</table>
											{cycle values="</td>,</td></tr><tr>"}
											{/foreach}
										</tr>
									</table>	
									<!--<table cellpadding="0" cellspacing="0" border="0" width="100%">
										<tr>
											<td width="50%">
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tr>
														<td rowspan="2" width="50px" align="left" style="padding-right:10px;"><img src="/img/foto_smol.jpg"  width="50" height="50"></td><td valign="top"><a class="grey">Лучший день в Египте</a></td>
													</tr>
													<tr>
														<td valign="bottom" align="left"><a href="#" class="grey">Удалить</a></td>
													</tr>
												</table>
											</td>
											<td width="50%">
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tr>
														<td rowspan="2" width="50px" align="left" style="padding-right:10px;"><img src="/img/foto_smol.jpg"  width="50" height="50"></td><td valign="top"><a class="grey">Лучший день в Египте</a></td>
													</tr>
													<tr>
														<td valign="bottom" align="left"><a href="#" class="grey">Удалить</a></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
								<td width="30%" style="padding-top:10px; padding-right:10px;"><img src="img/foto_smol.jpg" width="50px" height="50px"></td>
								<td width="70%" align="left">
								</td>
							</tr>-->
							
							<form action="/feedback/saveuploadimage" method="post" name='uploadfiles'>
							<tr>
								<td style="padding-top:20px;" width="30%"><a class="grey">Заголовок изображения:</a></td>
								<td style="padding-top:20px;" align="right" width="70%"><input size=64 name="alt_text" id="alt_text" type="text"  class="grey" value="Заголовок изображения" onfocus="value=''"/></td>
							</tr>
							<tr>
								<td style="padding-top:5px;"><a class="grey">Файл (не более 5MB):</a></td>
								<td style="padding-top:0px;" align="right">
									<div>
										<div>
											<input type="text" id="txtFileName" disabled="true" style="border: solid 1px; padding-top:5px; background-color: #FFFFFF;" />
											<span id="spanButtonPlaceholder" style="padding-top:5px; border:1px;"></span>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<td colspan=2>
									<div class="flash" id="fsUploadProgress">
									</div>
									<input type="hidden" name="hidFileID" id="hidFileID" value="" />
								</td>
							</tr>
							<tr>
								<td colspan="2" align="right" style="padding-top:5px;">
									<form action="/feedback/saveimage" method="post">
									<input type="submit" value="Загрузить файл" id="btnSubmit" class="but"/>
									</form>
									<!--<input type="button" value="Загрузить файл" class="but" height="15px">
								--></td>
							</tr>
							</form>
							<tr>
								<!--<td style="padding-top:20px;" align="left"><input type="reset" value="Сброс" class="but" height="15px"></td>-->
								<td colspan="2" style="padding-top:20px;" align="right">
								<form action="/feedback/saveimage" method="post">
									<input type="submit" value="Добавить отзыв" class="but" height="15px">
									<input type="hidden" id="redirect" name="redirect" value="" />
								</form>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="left" style="padding-top:10px;"><a class="grey4">* - отмечены обязательные для заполнения поля. <br/>Кнопкой "добавить отзыв" вы може прекратить добавление отзыва на любом шаге</a></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>